package jobflow.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.validator.NotEmpty;
import org.hibernate.validator.NotNull;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
@Entity(name="Kullanici")
@Table(name="KULLANICI")
@Scope(ScopeType.SESSION)
@Name("kullanici")
public class Kullanici  {
    
	private Long id;
	private String kullaniciAdi;
	private String sifre;
	private Date tanimlanmaZamani;
	private Date guncellenmeZamani;
	
	public void setId(Long id) {
		this.id = id;
	}
	
	@Id
	@GeneratedValue
	@Column(name="ID")
	public Long getId() {
		return id;
	}
	public void setKullaniciAdi(String kullaniciAdi) {
		this.kullaniciAdi = kullaniciAdi;
	}
	@Column(name="KULLANICI_ADI")
	@NotNull
	@NotEmpty
	public String getKullaniciAdi() {
		return kullaniciAdi;
	}
	public void setSifre(String sifre) {
		this.sifre = sifre;
	}
	@Column(name="SIFRE")
	@NotEmpty
	@NotNull
	public String getSifre() {
		return sifre;
	}
	public void setTanimlanmaZamani(Date tanimlanmaZamani) {
		this.tanimlanmaZamani = tanimlanmaZamani;
	}
	@Column(name="TANIMLANMA_ZAMANI")
	public Date getTanimlanmaZamani() {
		return tanimlanmaZamani;
	}
	public void setGuncellenmeZamani(Date guncellenmeZamani) {
		this.guncellenmeZamani = guncellenmeZamani;
	}
	@Column(name="GUNCELLENME_ZAMANI")
	public Date getGuncellenmeZamani() {
		return guncellenmeZamani;
	}
	
	
}
